package com.wms.controller;

import com.wms.bean.ResultBean;
import com.wms.dto.AreaDTO;
import com.wms.service.LynAreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "库区查询")
@RequestMapping("/api")
public class SController {


    @Autowired
    LynAreaService lynAreaService;
    @ApiOperation("查询所有录取")
    @GetMapping("/lynArea")
    public ResultBean queryArea(){
        return lynAreaService.queryArea();
    }
}
